---
layout: api
title: "v2.1.2 JavaScript Library: All"
categories: api
version: v2.1.2
description: Build anything with Mapbox.js v2.1.2, a library for fast & interactive maps.
tags: v2.1.2
splash: true
navigation:
  - title: "Map Object"
    id: map-object
    nav:
    - title: "L.mapbox.map"
      id: l-mapbox-map
      nav:
      - title: "map.getTileJSON"
        id: map-gettilejson
        nav:
  - title: "Layers"
    id: layers
    nav:
    - title: "L.mapbox.tileLayer"
      id: l-mapbox-tilelayer
      nav:
      - title: "tileLayer.getTileJSON"
        id: tilelayer-gettilejson
        nav:
      - title: "tileLayer.setFormat"
        id: tilelayer-setformat
        nav:
    - title: "L.mapbox.gridLayer"
      id: l-mapbox-gridlayer
      nav:
      - title: "gridLayer.on"
        id: gridlayer-on
        nav:
      - title: "gridLayer.getTileJSON"
        id: gridlayer-gettilejson
        nav:
      - title: "gridLayer.getData"
        id: gridlayer-getdata
        nav:
    - title: "L.mapbox.featureLayer"
      id: l-mapbox-featurelayer
      nav:
      - title: "featureLayer.loadURL"
        id: featurelayer-loadurl
        nav:
      - title: "featureLayer.loadID"
        id: featurelayer-loadid
        nav:
      - title: "featureLayer.setFilter"
        id: featurelayer-setfilter
        nav:
      - title: "featureLayer.getFilter"
        id: featurelayer-getfilter
        nav:
      - title: "featureLayer.setGeoJSON"
        id: featurelayer-setgeojson
        nav:
      - title: "featureLayer.getGeoJSON"
        id: featurelayer-getgeojson
        nav:
  - title: "Geocoding"
    id: geocoding
    nav:
    - title: "L.mapbox.geocoder"
      id: l-mapbox-geocoder
      nav:
      - title: "geocoder.query"
        id: geocoder-query
        nav:
      - title: "geocoder.reverseQuery"
        id: geocoder-reversequery
        nav:
  - title: "Controls"
    id: controls
    nav:
    - title: "L.mapbox.infoControl"
      id: l-mapbox-infocontrol
      nav:
      - title: "infoControl.addInfo"
        id: infocontrol-addinfo
        nav:
      - title: "infoControl.removeInfo"
        id: infocontrol-removeinfo
        nav:
    - title: "L.mapbox.legendControl"
      id: l-mapbox-legendcontrol
      nav:
      - title: "legendControl.addLegend"
        id: legendcontrol-addlegend
        nav:
      - title: "legendControl.removeLegend"
        id: legendcontrol-removelegend
        nav:
    - title: "L.mapbox.gridControl"
      id: l-mapbox-gridcontrol
      nav:
      - title: "gridControl.hide"
        id: gridcontrol-hide
        nav:
      - title: "gridControl.setTemplate"
        id: gridcontrol-settemplate
        nav:
    - title: "L.mapbox.geocoderControl"
      id: l-mapbox-geocodercontrol
      nav:
      - title: "geocoderControl.setURL"
        id: geocodercontrol-seturl
        nav:
      - title: "geocoderControl.setID"
        id: geocodercontrol-setid
        nav:
      - title: "geocoderControl.setTileJSON"
        id: geocodercontrol-settilejson
        nav:
      - title: "geocoderControl.on"
        id: geocodercontrol-on
        nav:
    - title: "L.mapbox.shareControl"
      id: l-mapbox-sharecontrol
      nav:
  - title: "Markers"
    id: markers
    nav:
    - title: "L.mapbox.marker.icon"
      id: l-mapbox-marker-icon
      nav:
    - title: "L.mapbox.marker.style"
      id: l-mapbox-marker-style
      nav:
  - title: "Simplestyle"
    id: simplestyle
    nav:
    - title: "L.mapbox.simplestyle.style"
      id: l-mapbox-simplestyle-style
      nav:
  - title: "Utility"
    id: utility
    nav:
    - title: "L.mapbox.sanitize"
      id: l-mapbox-sanitize
      nav:
    - title: "L.mapbox.template"
      id: l-mapbox-template
      nav:
  - title: "Configuration"
    id: configuration
    nav:
    - title: "L.mapbox.accessToken"
      id: l-mapbox-accesstoken
      nav:
    - title: "L.mapbox.config.FORCE_HTTPS"
      id: l-mapbox-config-force_https
      nav:
    - title: "L.mapbox.config.HTTP_URL"
      id: l-mapbox-config-http_url
      nav:
    - title: "L.mapbox.config.HTTPS_URL"
      id: l-mapbox-config-https_url
      nav:
  - title: "Guides"
    id: guides
    nav:
    - title: "API access tokens"
      id: api-access-tokens
      nav:
    - title: "Upgrading from Mapbox.js v1"
      id: upgrading-from-mapbox-js-v1
      nav:
    - title: "Mobile"
      id: mobile
      nav:
      - title: "Viewport"
        id: viewport
        nav:
      - title: "Scrolling"
        id: scrolling
        nav:
    - title: "Theming"
      id: theming
      nav:
      - title: "Dark theme"
        id: dark-theme
        nav:
  - title: Leaflet
    nav:
    - title: L.Map
      id: l-map-class
    - title: L.Marker
      id: l-marker
    - title: L.Popup
      id: l-popup
    - title: L.TileLayer
      id: l-tilelayer
    - title: L.TileLayer.WMS
      id: l-tilelayer-wms
    - title: L.TileLayer.Canvas
      id: l-tilelayer-canvas
    - title: L.ImageOverlay
      id: l-imageoverlay
    - title: L.Path
      id: l-path
    - title: L.Polyline
      id: l-polyline
    - title: L.MultiPolyline
      id: l-multipolyline
    - title: L.Polygon
      id: l-polygon
    - title: L.MultiPolygon
      id: l-multipolygon
    - title: L.Rectangle
      id: l-rectangle
    - title: L.Circle
      id: l-circle
    - title: L.CircleMarker
      id: l-circlemarker
    - title: L.LayerGroup
      id: l-layergroup
    - title: L.FeatureGroup
      id: l-featuregroup
    - title: L.GeoJson
      id: l-geojson
    - title: L.LatLng
      id: l-latlng
    - title: L.LatLngBounds
      id: l-latlngbounds
    - title: L.Point
      id: l-point
    - title: L.Bounds
      id: l-bounds
    - title: L.Icon
      id: l-icon
    - title: L.DivIcon
      id: l-divicon
    - title: L.Control
      id: l-control
    - title: L.Control.zoom
      id: l-control-zoom
    - title: L.Control.Attribution
      id: l-control-attribution
    - title: L.Control.Layers
      id: l-control-layers
    - title: L.Control.Scale
      id: l-control-scale
    - title: Events methods
      id: l-events
    - title: Event objects
      id: l-event-objects
    - title: L.Class
      id: l-class
    - title: L.Browser
      id: l-browser
    - title: L.Util
      id: l-util
    - title: L.Transformation
      id: l-transformation
    - title: L.LineUtil
      id: l-lineutil
    - title: L.PolyUtil
      id: l-polyutil
    - title: L.DomEvent
      id: l-domevent
    - title: L.DomUtil
      id: l-domutil
    - title: L.PosAnimation
      id: l-posanimation
    - title: L.Draggable
      id: l-draggable
    - title: L.IHandler
      id: l-ihandler
    - title: L.ILayer
      id: l-ilayer
    - title: L.IControl
      id: l-icontrol
    - title: L.IProjection
      id: l-iprojection
    - title: L.ICRS
      id: l-icrs
    - title: Global Switches
      id: l-global
    - title: L.noConflict
      id: l-noconflict
    - title: L.version
      id: l-version
---
{% include api.introduction.html %}
